package com.job.search.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_history")
public class History {
    @TableField("user_id")
    private String userId;
    @TableField("search_content")
    private String searchContent;
    @TableField("search_time")
    private String searchTime;
    @TableLogic
    private Integer isDelete;

    public History(String userId, String searchContent, String searchTime) {
        this.userId = userId;
        this.searchContent = searchContent;
        this.searchTime = searchTime;
    }
}
